EVENT_RULES = {
    "aggs": {
        "groups": [
            {
                "group_name": "渠道",
                "field_id": "_chn",
                "is_keyword": True,
                "field_name": "渠道"
            }
        ],
        "values": [],
        "uv": {
            "field_id": "_user_id",
            "field_name": "绑定人次"
        },
        "pv": {
            "field_name": "绑定次数"
        }
    }
}


EVENT_CONFIG = {
    "event_id": "bind_phone",
    "event_name": "用户绑定手机",
    "values": {
        "_user_id": {
            "field_name": "用戶ID",
            "value_type": "long",
        },
        "phone": {
            "field_name": "手机号",
            "value_type": "string",
        }
    },
    "rule": EVENT_RULES
}
